Skip to content

{Compute} az vmss start: Migrate to CodeGen based#31909

Merged
yanzhudd merged 25 commits intoAzure:devfrom
naga-nandyala:naga/vmss_start
Aug 21, 2025
Merged

{Compute} az vmss start: Migrate to CodeGen based#31909
yanzhudd merged 25 commits intoAzure:devfrom
naga-nandyala:naga/vmss_start

Conversation

@naga-nandyala
Copy link
Copy Markdown
Contributor

@naga-nandyala naga-nandyala commented Aug 4, 2025

Related command

az vmss start

Description

aaz PR: Azure/aaz#824

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Aug 4, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Aug 4, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️vm
rule cmd_name rule_message suggest_message
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter instance_ids: added property aaz_type=AAZListArg
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter instance_ids: added property type=List<String>
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter no_wait: added property aaz_type=bool
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter no_wait: added property choices=['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes']
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter no_wait: added property nargs=?
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter no_wait: added property type=bool
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate vmss start cmd vmss start update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter vm_scale_set_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter vm_scale_set_name: added property id_part=name
⚠️ 1008 - ParaPropAdd vmss start cmd vmss start update parameter vm_scale_set_name: added property type=string
⚠️ 1010 - ParaPropUpdate vmss start cmd vmss start update parameter vm_scale_set_name: updated property name from vm_scale_set_name to name

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 4, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 4, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Aug 4, 2025
@naga-nandyala
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 31909 in repo Azure/azure-cli

@naga-nandyala
Copy link
Copy Markdown
Contributor Author

/azp list

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 5, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 31909 in repo Azure/azure-cli

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@naga-nandyala naga-nandyala changed the title vmss start migrate {Compute} az vmss start: Migrate to CodeGen based Aug 5, 2025
@naga-nandyala naga-nandyala marked this pull request as ready for review August 11, 2025 03:52
Copilot AI review requested due to automatic review settings August 11, 2025 03:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the az vmss start command from custom implementation to CodeGen based implementation. The change replaces the manually written command with an auto-generated AAZ (Azure CLI Auto-Generated) command structure.

  • Removes the custom start_vmss function and replaces it with a CodeGen-based VMSSStart class
  • Adds auto-generated command implementation in the AAZ module
  • Updates imports and command registration to use the new implementation

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py Adds new VMSSStart class that extends the auto-generated Start class with custom logic for handling instance IDs
src/azure-cli/azure/cli/command_modules/vm/custom.py Removes the old start_vmss function implementation
src/azure-cli/azure/cli/command_modules/vm/commands.py Removes the custom command registration for vmss start
src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_start.py New auto-generated command implementation file
src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/init.py Adds import for the new start command
src/azure-cli/azure/cli/command_modules/vm/_params.py Removes vmss start from the parameter scope list
src/azure-cli/azure/cli/command_modules/vm/_help.py Removes the manual help documentation for vmss start command

Comment thread src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_start.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_start.py Outdated
@yanzhudd yanzhudd changed the title {Compute} az vmss start: Migrate to CodeGen based {Compute} az vmss start: Migrate to CodeGen based Aug 18, 2025
@yanzhudd
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd
Copy link
Copy Markdown
Contributor

please make sure to push the latest changes to aaz repo.

@naga-nandyala
Copy link
Copy Markdown
Contributor Author

please make sure to push the latest changes to aaz repo.

Yes this has been done

@yanzhudd yanzhudd merged commit f87bc09 into Azure:dev Aug 21, 2025
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants